// pages/index/index.js
const app=getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    banner: [{pic: '/images/b1.jpg' }, {pic: '/images/b2.jpg' },{pic: '/images/b3.jpg' }],
    xindex:'',
    navList: [{
        url: '/pages/details/index',
        img: '/images/jk1.png',
        content: '复制详细信息展现',
        name: '监控详细'
      }, {
        url: '/pages/control/index',
        img: '/images/jktj.png',
        content: '域名统一监控管理',
        name: '监控统计'
      }, {
        url: '/pages/keyword/index',
        img: '/images/gjc.png',
        content: '统计关键词监控详细',
        name: '关键词搜索统计'
      }, {
        url: '/pages/report/index',
        img: '/images/bb.png',
        content: '成本统计详细',
        name: '报表统计'
      },
      {
        url: '/pages/hostcount/index',
        img: '/images/zd.png',
        content: '站点成本统计',
        name: '站点统计'
      },
      {
        url: '/pages/blacklist/index',
        img: '/images/ym.png',
        content: '以下站点不监控',
        name: '站点黑名单'
      },
      {
        url: '/pages/tutorial/index',
        img: '/images/jc.png',
        content: '如何查看监控数据',
        name: '监控教程'
      },
      {
        img: '/images/duck.png',
        content: '丰富渠道资源',
        name: '进入推鸭',
        tools:true
      }
    ],
    advList: [{
      url: '/pages/wechat/group/index',
      img: '/images/wxfz.png',
      content: '微信分组人性化管理',
      name: '微信分组'
    }, {
      url: '/pages/wechat/index',
      img: '/images/wx.png',
      content: '多微信，批量管理',
      name: '微信号列表'
    }, {
        url: '/pages/advert/module/index',
      img: '/images/mk.png',
      content: '广告落地页设计',
      name: '广告模板'
    }, {
      url: '/pages/advert/list/index',
      img: '/images/tf.png',
        content: '投放计划编辑',
      name: '广告投放'
    }
    ]
  },
  onChange(e){
   this.setData({xindex:e.detail.current});
  },
  toTuiya() {//跳推鸭小程序
    wx.navigateToMiniProgram({
      appId: 'wx3a593ff68dc787aa',
      path: 'pages/index/index'
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    
  },
  bannerFn(){
    wx.createAnimation({
      duration:'400',

    })
  }
  
})